/* $Id: Musician.java,v 1.4 2006/12/18 13:25:36 gigabass Exp $
 *
 * Copyright (c) Guido Ludwig. All rights reserved.
 * Use is subject to license terms.
 */

package de.guidoludwig.jtm.domain;

import javax.persistence.Embeddable;

import com.jgoodies.binding.beans.Model;


/**
 * Domain object for a Musician
 * 
 * @author <a href="mailto:jtrade@gigabss.de">Guido Ludwig</a>
 * @version $Revision: 1.4 $
 */
@Embeddable
public class Musician extends Model {

	public static final String PROPERTY_NAME = "name";
	public static final String PROPERTY_INSTRUMENTS = "instruments";
	private String name;

	private String instruments;

	public Musician() {
		// 
	}

	public String getInstruments() {
		return instruments;
	}

	public String getName() {
		return name;
	}

	public void setInstruments(String instruments) {
		String old = getInstruments();
		this.instruments = instruments;
		firePropertyChange(PROPERTY_INSTRUMENTS, old,getInstruments());
	}

	public void setName(String name) {
		String old = getName();
		this.name = name;
		firePropertyChange(PROPERTY_NAME, old,getName());
	}
}